#include "Boots.h"
#include "../SGD Wrappers/SGD_GraphicsManager.h"
#include "GameplayState.h"


Boots::Boots()
{
	m_hImage = SGD::GraphicsManager::GetInstance()->LoadTexture("resource/graphics/Boots.png");
}

Boots::~Boots()
{
	SGD::GraphicsManager::GetInstance()->UnloadTexture(m_hImage);
}

void Boots::Render()
{
	GameplayState* game = GameplayState::GetInstance();
	SGD::Point pos(m_ptPosition.x - game->GetCamX(), m_ptPosition.y - game->GetCamY());
	
	if (m_bAlive)
		SGD::GraphicsManager::GetInstance()->DrawTexture(m_hImage,pos);
}